home *** CD-ROM | disk | FTP | other *** search
- Path: yarrow.wt.com.au!usenet
- From: bvarley@yarrow.wt.com.au (bruce varley)
- Newsgroups: comp.lang.c
- Subject: Re: A problem with fprintf
- Date: Wed, 10 Jan 1996 02:33:36 GMT
- Organization: Winthrop Technology
- Message-ID: <4cth3m$1c0@yarrow.wt.com.au>
- References: <4cs8ie$5ru@no-names.nerdc.ufl.edu> <4csdt4$mcn@castle.nando.net>
- NNTP-Posting-Host: yarrow
- X-Newsreader: Forte Free Agent 1.0.82
-
- In a formal sense the debugger is right. 'src' is not the same as a
- pointer to a string. &src[0] is closer to being formally right, if src
- is type char. If the debugger is REALLY finicky, it might go off
- hunting for the null and spit the dummy if it doesn't find it.
-
- One solution is to use pointers. char* is the right way to point to
- the string to be output.
-
- Not all compilers are this fussy.
-
-